﻿/*
 * @author: wizardc
 */

namespace Dou.Download
{
    /// <summary>
    /// 下载错误码
    /// </summary>
    public enum DownloadErrorCode
    {
        /// <summary>
        /// 取消下载
        /// </summary>
        Cancel = 0,

        /// <summary>
        /// 获取下载文件尺寸错误
        /// </summary>
        GetFileSizeError = 1,

        /// <summary>
        /// 打开或创建临时文件错误
        /// </summary>
        OpenOrCreateTempFileError = 2,

        /// <summary>
        /// 下载网络错误
        /// </summary>
        NetError = 3,

        /// <summary>
        /// 最终下载完成的文件和文件长度不匹配
        /// </summary>
        FileSizeError = 4,

        /// <summary>
        /// 移动最终下载文件错误
        /// </summary>
        MoveFileToDestError = 5,
    }
}
